import request from '@/utils/request'

// 查询外部供电退服无停电告警列表
export function listExternalpowersupply(query) {
  return request({
    url: '/tietasystem/externalpowersupply/list',
    method: 'get',
    params: query
  })
}

// 查询外部供电退服无停电告警详细
export function getExternalpowersupply(id) {
  return request({
    url: '/tietasystem/externalpowersupply/' + id,
    method: 'get'
  })
}

// 新增外部供电退服无停电告警
export function addExternalpowersupply(data) {
  return request({
    url: '/tietasystem/externalpowersupply',
    method: 'post',
    data: data
  })
}

// 修改外部供电退服无停电告警
export function updateExternalpowersupply(data) {
  return request({
    url: '/tietasystem/externalpowersupply',
    method: 'put',
    data: data
  })
}

// 删除外部供电退服无停电告警
export function delExternalpowersupply(id) {
  return request({
    url: '/tietasystem/externalpowersupply/' + id,
    method: 'delete'
  })
}

// 导出外部供电退服无停电告警
export function exportExternalpowersupply(query) {
  return request({
    url: '/tietasystem/externalpowersupply/export',
    method: 'get',
    params: query
  })
}

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/tietasystem/externalpowersupply/importTemplate',
    method: 'get'
  })
}
